import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;

class Lyndis
{
	private int x_speed, y_speed;
	private int x_pos = 0;
	private int y_pos = 200;

	ImageIcon rightStand = new ImageIcon ("images\\lynStand.png");
	ImageIcon rightWalk = new ImageIcon ("images\\lynWalk.png");
	ImageIcon rightCrouch = new ImageIcon ("images\\lynCrouch.png");
	ImageIcon rightAttack = new ImageIcon ("images\\lynAttack.gif");
	
	ImageIcon rightAttack00 = new ImageIcon (attackURL());
	
	Image img = rightStand.getImage();
	
	public void move ()
	{
		x_pos += x_speed;
		y_pos += y_speed;
	}
	
	public String attackURL ()
	{
		return "images\\lynAttack\\lynAttack0.png";
	}
	
	public void setPosition (int position)
	{
		if (position == 0)
			img = rightStand.getImage();
		else if (position == 1)
			img = rightWalk.getImage();
		else if (position == 3)
			img = rightCrouch.getImage();
		else if (position == 4)
		{
			img = rightAttack00.getImage();
			try
			{
				Thread.sleep(10);
			}
			catch (Exception e){}
			/*img = rightAttack1.getImage();
			img = rightAttack2.getImage();
			img = rightAttack3.getImage();
			img = rightAttack4.getImage();
			img = rightAttack5.getImage();
			img = rightAttack6.getImage();
			img = rightAttack7.getImage();
			img = rightAttack8.getImage();
			img = rightAttack9.getImage();
			img = rightAttack10.getImage();
			img = rightAttack11.getImage();
			img = rightAttack12.getImage();
			img = rightAttack13.getImage();*/
		}
	}
	
	public void setXSpeed(int x_speed)
	{
		this.x_speed = x_speed;
	}
	
	public void setYSpeed(int y_speed)
	{
		this.y_speed = y_speed;
	}
	
	public int getXSpeed()
	{
		return x_pos;
	}
	
	public int getYSpeed()
	{
		return y_pos;
	}
}